package com.group.three.mapper;

import com.group.three.entity.AfterSale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AfterSaleMapper {
    //分页查询售后列表
    List<AfterSale> getAfterSalePages(@Param("storeId") String storeId, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    //商家审核售后
    int review(@Param("afterSaleSn") String afterSaleSn, @Param("serviceStatus") String serviceStatus, @Param("remark") String remark, @Param("actualRefundPrice") Double actualRefundPrice);

    //商家确认售后商品收货
    int storeConfirm(@Param("afterSaleSn") String afterSaleSn, @Param("serviceStatus") String serviceStatus, @Param("remark") String remark);
    //商家换货业务发货
    int changeLogistics(@Param("afterSaleSn")String afterSaleSn, @Param("changeStatus")String changeStatus, @Param("logisticsSn")String logisticsSn,@Param("logisticsCompany") String logisticsCompany);
}
